package com.hxd.mall.module.product.home.bean

import com.hxd.mall.network.base.BaseBean
import com.hxd.mall.network.base.BaseSerializable

/**
 * 商品详情bean
 */
class HomeProductListBean : BaseBean() {

    /**
     * code : 0
     * data : {"endRow":0,"hasNextPage":true,"hasPreviousPage":true,"isFirstPage":true,"isLastPage":true,"list":[{"channel":"string","couponAmount":0,"description":"string","discountPrice":0,"no":"string","origPrice":0,"pictUrl":"string","reservePrice":0,"subChannel":"string","title":"string"}],"navigateFirstPage":0,"navigateLastPage":0,"navigatePages":0,"navigatepageNums":[0],"nextPage":0,"pageNum":0,"pageSize":0,"pages":0,"prePage":0,"size":0,"startRow":0,"total":0}
     * msg : string
     */
    var data: DataBean? = null
}

data class DataBean(
    val endRow: Int,
    val hasNextPage: Boolean,
    val hasPreviousPage: Boolean,
    val isFirstPage: Boolean,
    val isLastPage: Boolean = false,
    val list: List<ListBean>,
    val navigateFirstPage: Int,
    val navigateLastPage: Int,
    val navigatePages: Int,
    val navigatepageNums: Any,
    val nextPage: Int,
    val pageNum: Int,
    val pageSize: Int,
    val pages: Int,
    val prePage: Int,
    val size: Int,
    val startRow: Int,
    val total: String
) : BaseSerializable()

data class ListBean(
    val channel: String,
    val couponAmount: String = "",
    val couponInfo: String = "",
    val description: String = "",
    val discountPrice: String = "",
    //预付收益
    val estimatedIncome: String = "",
    val no: String,
    val origPrice: String = "",
    val pictUrl: String,
    val reservePrice: String = "",
    val subChannel: String,
    val title: String,
    /**
     * 店铺名称
     */
    val shopName: String,
    /**
     * 所在城市
     */
    val provCity: String,
    /**
     * 销量
     */
    val volume: String
) : BaseSerializable()